using Magiq.Behaviors;

namespace Magiq.Update
{
    public class DefaultUpdateBehavior : DefaultBehavior, IUpdateBehavior
    {
        IUpdateStrategy IUpdateBehavior.GetUpdateStrategy<T>(IUpdate<T> update)
        {
            return Magiq.ForUpdate(update);
        }

        int IUpdateBehavior.Execute(IUpdateStrategy strategy)
        {
            return strategy.Execute();
        }
    }
}